package com.aorise.mapper.halt;

import com.aorise.model.halt.HaltCommentAddVO;
import com.aorise.model.halt.HaltCommentModel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
* @Author:cat
* @Description 停机评论mybatis接口类
* @Date:Created in 2019-06-11
* @Modified By:
*/
@Mapper
@Component(value = "haltCommentMapper")
public interface HaltCommentMapper {

    /**
     * @Author:cat
     * @Description 根据停机记录ID查询停机评论
     * @params: map 查询条件Map
     * @Date:2019-06-11
     * @Return: List<HaltCommentModel> 停机评论集合
     * @Modified By:
     */
    List<HaltCommentModel> getHaltCommentByHaltId(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 新增停机评论信息
     * @params: haltCommentAddVO 停机评论信息
     * @Date:2019-06-11
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addHaltComment(HaltCommentAddVO haltCommentAddVO) throws DataAccessException;

}